package com.yunxi.order.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.ApiResult;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.core.web.ResponseUtil;
import com.yunxi.order.pojo.OrderActualSalesVO;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class OrderActualSalesDubboServiceMock implements OrderActualSalesDubboService{
    @Override
    public OrderActualSalesVO getById(String id) throws InvocationTargetException, IllegalAccessException {
        return null;
    }

    @Override
    public void saveOrUpdate(OrderActualSalesVO orderActualSalesVO) throws InvocationTargetException, IllegalAccessException {

    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public PageInfo<OrderActualSalesVO> findPageByVO(OrderActualSalesVO orderActualSalesVO, Integer pageNum, Integer pageSize, LoginInfo loginInfo) throws InvocationTargetException, IllegalAccessException {
        PageInfo<OrderActualSalesVO> pageInfo = new PageInfo<OrderActualSalesVO>();
        List list = new ArrayList();
        OrderActualSalesVO vo = new OrderActualSalesVO();
        vo.setCustomerName("暂无数据");
        list.add(vo);
        pageInfo.setList(list);
        return pageInfo;
    }

    @Override
    public void removeByListVo(List<OrderActualSalesVO> orderActualSalesVOList) throws IllegalAccessException, InvocationTargetException, InstantiationException {

    }

    @Override
    public List listByVo(OrderActualSalesVO orderActualSalesVO) {
        List list = new ArrayList();
        OrderActualSalesVO vo = new OrderActualSalesVO();
        vo.setCustomerName("暂无数据");
        list.add(vo);
        return list;
    }

    @Override
    public ApiResult saveOrderActualSales(String orderCustomerNO, LoginInfo loginInfo) throws Exception {
        return ResponseUtil.fail900();
    }

    @Override
    public OrderActualSalesVO loadDetail(String orderCustomerNo) {
        return null;
    }

    @Override
    public ApiResult salesReported(OrderActualSalesVO orderActualSalesVO, LoginInfo loginInfo) throws Exception {
        return ResponseUtil.fail900();
    }

    @Override
    public void generateOrderActualInfo(String vin) {

    }
}
